package firstStage.part5;

/**
 * @ClassName: [MethodDemo2]
 * @Description: 形参和实参方法
 * @Author: [黄劲松]
 * @CreateDate: [2021-02-06]
 * @Version: [v1.0]
 */
public class MethodDemo2 {
    public static void main(String[] args) {
        getMax(19, 23);
        int a = 29;
        int b = 22;
        getMax(a, b);
    }

    public static void getMax(int a, int b) {
        if (a > b) {
            System.out.println(a);
        } else {
            System.out.println(b);
        }
    }
}
